package name.fowler.refactoring.simplestore.service;

import name.fowler.refactoring.simplestore.model.Customer;

abstract class ReportFormatter {

    protected abstract String formatHeader(Customer customer);
    protected abstract String formatBody(Customer customer);
    protected abstract String formatFooter(Customer customer);

    public String format(Customer customer) {
        return formatHeader(customer) + formatBody(customer) + formatFooter(customer);
    }
}
